<?php
use yii\grid\GridView;
use yii\widgets\Pjax;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
/* @var $searchModel common\modules\rbac\backend\models\searchs\Assignment */

$this->title = Yii::t('backend', 'Assignments');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="assignment-index">
	<?php
Pjax::begin([
    'enablePushState' => false
]);
echo GridView::widget([
    'dataProvider' => $dataProvider,
    'filterModel' => $searchModel,
    'columns' => [
        [
            'class' => 'yii\grid\SerialColumn'
        ],
        [
            'class' => 'yii\grid\DataColumn',
            'attribute' => $usernameField
        ],
        [
            'class' => 'yii\grid\ActionColumn',
            'template' => '{view}'
        ]
    ]
]);
Pjax::end();
?>

</div>
